added privacy policy and terms of use links to login

fixed resource dialog but when changing orientation