Added Login/Register Funtionality