I am not a PHP programmer so I am not asking this question in a snide way or trying to imply that you are not doing the correct / best thing.
I am asking this questions because in scripts I have used I have seen the password saved / checked in a different manor. Now maybe your way is better / faster/ more secure/ more correct, I don't know so I am asking.
My question is, why are you using $epword = crypt($pword,$salt); as opposed to just saving the MD5 check sum of the password and then when the user logs in, comparing the MD5 of the entered password with the stored MD5.
Again, please don't take this as an offence or a negative. This is simply about me learning more about PHP by asking questions about why you did what you did .