fix authentication bug and fix empty input button value bug