adding cache for user credentials