made register page error alert same as login page

made register page error alert same as login page