move contract to model. login now validate to database.
delete model fungsionality.