finishing specs and test for login