a bit organised and making it ready for md5 integration with real loggin in
foundation way of login and resources all in place