authentication stuff(unfinished)& map load thing

map kind of fixed but not really, authentication doesn't work really,
something about the register route