Added tests and functionality for signing in and logging in to the app