added sign-in functionality