Make sure indices aren't repeated
Move all validation to forms
Fix user id assignment to registration keys
Use with block for g.login_form