bug fixes in user class