Allowing the loginUser method to have access to the context