login method 

login method returning correct values