implementing a loginsuccessurl feature