simple login and register
merging User.js