Updated field validation

Added custom field value validation on login form and changed some
styles using both, CSS and JS, for different field states. Also applied
hack on password field to change type depending on value in it.