added methods for authentication