Update test code for user login in controller