refactored the user login section w/ jeff