added skeleton for server side authentication