User authentication fixed