Cleaned up code in login and sellbuy modules