App closes everytime I login