Login implementation and routes changed