Creating log in functionality.