added log in functionality
added login testing with factories