created 2 global methods to get user id and user name