modified for fb login