Fixed transfer protection bug. Transfer is in a working state.
Addded assert to login.