RAVE-1095 | Updated login function signature

The login function signature now includes the model and HttpServeltRequest to facilitate different authentication methods.