Implemented registartion and login workflow.