fixed profile and user logic