registration and login controllers changes