added mockito and test for the login procedure