completed User model. added guard to automate testing