added changes on the user page and changed database model