Added Registration and Login functionalities