adding get_date function and correcting get_user function