Added client side code for registration and registered user login. TODO: fix database errors.