Registration and Login forms error handling