Move login logic and views to login fragment