Register and Login functions worked