Add basic login functionality

User does not seem to show up as authenticated for login_required decorator still.