refactoring

data store in data.js
using helper for login and signup (modular code)