adding authenticate controller