Login and registration fixed, simple validation