add pitcure and implememnt login function