added sign in functionality