Added registration and loginization