update user status functionality