Refactored login code and passing user ID to home page