required attribute added in login model for model state validation