moved auth checking and auth forms to angular