Bug fixes

Fixed error in the login system. Preparing to handle multifile torrents