Added checking for userid and redirect