Fixed login to register itself as a view to stop the back button and navigation from messing up