Updated REST call for login, add register button and REST call for register