Client side Authentication