Refactored Login View out of the Main view