merge with login
Merge branch 'master' of https://github.com/avelino/mining
Merge branch 'master' of https://github.com/avelino/mining
login custom ok, check if is logged in and check dashboard permissions