Done the registration logic. Todo login logic