[test] refactored test for loginfailure, added test for wrong photo