Added validation to login form.
Added mongo form attribute as hidden value in setup form.