model level validations added
saved only username into cookie