refactored login layout preparing to use OAuth login method