Made mixing for trade form component
Changes:

Added username validation.
Added email on registration.
Made post-login redirect more robust.