Work on login and registration (Based on CustomCupcakes). Added validation (Based on CustomCupcakes code).