Added SHA1 encryption for password