fix login refactoring bugs; update UI
fix git merge mistakes
redirect to home upon login, not browse