Added Authentication form validation

form validation on authentication forms and gave authentication a state
of its own