change file name and error function in login page