Login system stage 1

This is the login system, can check for normal and admin rights, only
currently works for member and reports still needs implementing in
courses and sales