AJAX method enhanced and added method for username fetching