It worked. Now I want to change *formstyle* and default labels: 1) E-mail to Email 2) The message in red below Email: Invalid email to Please enter a valid email address. 3) The message in red below password: too short to Please enter a valid password. too short is actually misleading because I am hitting Sign Up with all fields empty.
auth.settings.login_onvalidation = login_email_lower current.app.auth = auth form=current.app.auth.login(next=login_next) form.custom.submit['_data-theme'] = 'e' form.custom.submit_button = 'Sign In' like in: form_add_email_address = SQLFORM.factory( Field('email_address', requires=[IS_NOT_EMPTY(), IS_EMAIL(error_message='invalid email!')]), submit_button = 'Add', *formstyle *= 'table2cols' )