login and pic upload