added user authentication. Working on iPhone first, making universal afterwards.