basic login and registration with error display