RestController now authenticates user before sending back an authentication key