added expiration to token,codes.
added web_token for authentication on web-page.