implement authentication, storage token and fix gub in login