Added md5 encryption and persistence of username when incorrect password