login crypt function, updated mysql template, temperorary new order on client side