testing functionality of login