login page update

add password hash function