login and take photo