changing method to check user availability2