User authentication script