Managed to get a proper login working.