controller for login and registration added