Fixed getusername method with actual username