initializing auth on load and handling multipart mixed