finished sign in functionality