fix register for already logged in users