correcing db errors in User entity