Fix null exception

Fix null exception, when user not exist in database