fixed login bug and u_p record making
Merge pull request #34 from alangster/security-bug-fix

fixed login bug and u_p record making