added sign-in functionality, all tests passed