Updated sample application so it can build now. Implemented logic for new login procedure.