separated LoginController from RegisterController, now returned "status code: 500", not sure if the password is wrong or bugs in code
solved contradiction between "self.navigationController presentViewController" and a segue attached to the same button by deleting the IBAction of the button;
added alert when registration or log-in is completed;
added a confirm-password TextField