fix js error in submit button and add error message for incorrect login