Two minor fixes to Wordpress functions

Functions wp_new_user_notification() expects user id and not user name and get display_name using get_userdata() since it is not available as a user meta.