Added basic login functionality.
Refactored bcrypt methods because of confusing names