Added posibility to login with key in url