finish login and signup function

add processbar and complete the logical