registration sends emails but login not working - probably double hashing of files