fixed small bugs, password_digest not working