added error messages for login/register forms