Login and Register functionalities added