authentication working
renamed button
improve exception handling and fix minor bugs