implemented user sign-up and sign-in