added some native login code for testing