small improvements for user class