Added unit test for login_mod