adding check if cookies are enabled to properly login