working on user class for #42
template switching starting to work
working authorization for #42