Finished v0.1 of registration/login logic