added Auth functionality