made fetching from cookies more secure
set user state and roles
added essential role and user functions
fixed validation (didnt work with subdomain)
changed views so that you cant regiter twice
fixed bug and added roles