added sign-up and log-in functions