Adding parse_user_details function