adding password encryption, remember me functionality